package ws.jdbc.concurrent.cursor;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * This interface provides services to move forward-only and read-only upon
 * a {@link ResultSet} object.
 *
 * @author Wilson Santos, 36228 <wilson.santos@ua.pt>
 */
public interface ICursorForwardReadOnly {

  boolean next() throws SQLException;

  int getInt(int columnIndex) throws SQLException;

  String getString(int columnIndex) throws SQLException;

  float getFloat(int columnIndex) throws SQLException;

  int getRow() throws SQLException;

  boolean isAfterLast() throws SQLException;

  boolean isBeforeFirst() throws SQLException;

  void lock();
  void unlock();
}
